package sk.xorty.quartz;

import org.springframework.stereotype.Component;
import org.springframework.util.FileCopyUtils;

import java.io.File;
import java.io.IOException;

@Component("fileCopier")
public class FileCopierImpl implements FileCopier {

    @Override
    public void copyFile(String srcDir, String destDir, String filename)
            throws IOException {
        File src = new File(srcDir, filename);
        File dest = new File(destDir, filename);
        FileCopyUtils.copy(src, dest);
    }

}
